package com.j2009.springbootproject.service;

import com.j2009.springbootproject.entity.User;
import com.j2009.springbootproject.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName: UserServiceImpl
 * Description:
 * date: 2021/4/6 17:08
 *
 * @author wuyafeng
 * @version 1.0   softeem.com
 */
@Service
public class UserServiceImpl implements  UserService {

    @Autowired
    public UserMapper userMapper;
    @Override
    public User selectByUser(String uname, String password) {
        User user = new User();
        user.setUsername(uname);
        user.setPassword(password);
        return userMapper.selectByName(user) ;
    }
}
